cmake_minimum_required(VERSION 3.5.1)
project(models)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_BUILD_TYPE Release)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

# pcl
find_package(PCL 1.8 REQUIRED)
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})

# 自己的库
include_directories(include ../)

file(GLOB SRCS ${PROJECT_SOURCE_DIR}/src/*.cpp)
file(GLOB INCS ${PROJECT_SOURCE_DIR}/include/*.h ${PROJECT_SOURCE_DIR}/include/*.hpp)

add_library(Models SHARED ${SRCS} ${INCS})
target_link_libraries(Models ${PCL_LIBRARIES})
